package com.yipinhouse.signing.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.signing.client.param.DoSigningParam;
import com.yipinhouse.signing.client.result.HouseTradeResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "signingQueryClient",name="signing",path="signing")
public interface SigningQueryClient {

    /**
     * 通过用户id获取房屋交易记录
     * @param userId
     * @return
     */
    @GetMapping("/getHouseTradeByUser")
    Result<List<HouseTradeResult>> getHouseTradeByUser(@RequestParam("userId") Integer userId);

    /**
     * 通过id查询房屋交易记录
     * @param houseTradeId
     * @return
     */
    @GetMapping("/getHouseTradeById")
    Result<HouseTradeResult> getHouseTradeById(@RequestParam("houseTradeId") Integer houseTradeId);

}
